/*
 * Copyright (c) 2016- 2020 qolome.com Inc. All Rights Reserved.
 * ProjectName: qolome-knowledge
 * FileName: SeriableSingleton.java
 * Author: jiangfeng@qolome.com
 * Date: 2020/2/28 下午3:46
 * LastModified: 2020/02/28 15:46:28
 */

package com.qolome.knowledge.design.pattern.singleton.seriable;

import java.io.Serializable;
import java.util.stream.Stream;

/**
 * @author Qolome
 * @version V1.0
 * @Description 序列化单例
 * @date 2020年 02月28日 15:46:46
 */
public class SeriableSingleton implements Serializable {


    public final static SeriableSingleton INSTANCE = new SeriableSingleton();

    private SeriableSingleton(){};

    public static SeriableSingleton getInstance(){
        return INSTANCE;
    }

    private Object readResolve(){
        return INSTANCE;
    }
}
